package org.firebug.spring.cloud.zuul;

import org.firebug.spring.cloud.zuul.filter.AccessLogFilter;
import org.firebug.spring.cloud.zuul.filter.PasswordFilter;
import org.firebug.spring.cloud.zuul.filter.UsernameFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@EnableZuulProxy
@SpringCloudApplication
public class SpringCloudZuulApplication {
	public static void main(String[] args) {
        SpringApplication.run(SpringCloudZuulApplication.class, args);
	}
	@Bean
	public AccessLogFilter accessLogFilter() {
		return new AccessLogFilter();
	}
//	@Bean
	public UsernameFilter usernameFilter() {
		return new UsernameFilter();
	}
//	@Bean
	public PasswordFilter passwordFilter() {
		return new PasswordFilter();
	}
}